package com.controller.setting;

import com.comm.R;
import com.comm.vo.HospitalinformationVo;
import com.entity.Hospitalinformation;
import com.entity.ProjectTable;
import io.swagger.annotations.*;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
@RequestMapping(value = "/systemHospitalinformation")
@Controller
@Api(value = "诊所信息",tags = "诊所信息接口")
@ApiResponses({
        @ApiResponse(code=200,message="请求成功"),
        @ApiResponse(code=404,message="找不到页面"),
        @ApiResponse(code=403,message="请求禁止"),
        @ApiResponse(code=401,message="请求未授权"),
        @ApiResponse(code=500,message="后台服务错误")})
public class SystemHospitalinformation {
//   1.6.1：查找诊所部分信息（这里某些字段需要动态获取，这里是查询）：
    @ResponseBody
    @RequestMapping(value ="/fundHospitalinformation",method = RequestMethod.GET)
    @ApiOperation(value = "查找诊所部分信息接口",notes = "查找诊所部分信息",httpMethod = "post", response = String.class)
    public  R fundHospitalinformation(){
        R r = new R();
        r.setCode(200);
        r.setMsg("你好棒，查到了");
        String data = "[{\n" +
                "   \"hospitalinPfnd\":\"全科\",\n" +
                "   \"hospitalinAddress\":\"中南海\",\n" +
                "  \"hospitalinProfile\":\"医不死\"\n" +
                "  }\n" +
                "]";
        r.setData(data);
        return r;
    }
//1.6.2：编辑诊所信息：
    @ResponseBody
    @RequestMapping(value ="/addHospitalinformation",method = RequestMethod.POST)
    @ApiOperation(value = "编辑诊所信息的接口",notes = "编辑诊所信息",httpMethod = "post", response = String.class)
    @ApiImplicitParam(name = "projectName",value = "名称",required = true,dataType = "string",paramType = "query")
    public  R addHospitalinformation(@RequestBody@ApiParam("hospitalinformation") HospitalinformationVo hospitalinformation){
        R r = new R();
        r.setCode(200);
        r.setMsg("你好棒，添加成功");
        String data = "";
        r.setData(data);
        return r;
    }
//   1.6.3：查询有哪些科室：（动态获取）
    @ResponseBody
    @RequestMapping(value ="/fundAdministratives",method = RequestMethod.GET)
    @ApiOperation(value = "查询有哪些科室的接口",notes = "查询有哪些科室",httpMethod = "post", response = String.class)
    public  R fundAdministrative(){
        R r = new R();
        r.setCode(200);
        r.setMsg("你好棒，查询成功");
        String data = "[{\n" +
                "   \"id\": 100001,\n" +
                "   \"officName\": \"男科\",\n" +
                "   \"officNumber\": 30,\n" +
                "   \"status\": 1\n" +
                "  },{\n" +
                "   \"id\": 100001,\n" +
                "   \"officName\": \"女科\",\n" +
                "   \"officNumber\": 32,\n" +
                "   \"status\": 1\n" +
                "  },{\n" +
                "   \"id\": 100001,\n" +
                "   \"officName\": \"孩科\",\n" +
                "   \"officNumber\": 33,\n" +
                "   \"status\": 1\n" +
                "  }\n" +
                "\n" +
                "\n" +
                " ]";
        r.setData(data);
        return r;
    }
//1.6.4：(动态获取)查找诊所所有者姓名接口
    @ResponseBody
    @RequestMapping(value ="/fundUserboss",method = RequestMethod.GET)
    @ApiOperation(value = "查找诊所部分所有者姓名接口",notes = "查找诊所部分所有者",httpMethod = "post", response = String.class)
    public  R fundUser(){
        R r = new R();
        r.setCode(200);
        r.setMsg("你好棒，删除成功");
        String data ="[{\n" +
                "   \"id\": 100001,\n" +
                "   \"empName\": \"李易峰\",\n" +
                "   \"empSex\": \"男\",\n" +
                "   \"empAge\": 30,\n" +
                "   \"empPhoneNum\":12346789,\n" +
                "   \"jionTime\":\"2022-11-12\",\n" +
                "   \"empUserName\":\"超级嫖娼王\",\n" +
                "   \"empPassword\":\"xxxx\",\n" +
                "  \"doctorAdept\":\"嫖娼\",\n" +
                "  \"doctorAdept\":\"曾经的男神\",\n" +
                "  \"officeId\":1001,\n" +
                "  \"jobId\":1001,\n" +
                "   \"status\":1,\n" +
                "  \"id\":1001,\n" +
                "  \"officName\":\"男科\",\n" +
                "  \"officNumber\":\"1001\",\n" +
                "   \"status\":\"1\"\n" +
                "  }\n" +
                "]";
        r.setData(data);
        return r;
    }
}
